package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SpecialequipmentMapper;
import com.ruoyi.system.domain.Specialequipment;
import com.ruoyi.system.service.ISpecialequipmentService;

/**
 * 特种设备操作Service业务层处理
 * 
 * @author WEI&WU
 * @date 2024-05-25
 */
@Service
public class SpecialequipmentServiceImpl implements ISpecialequipmentService 
{
    @Autowired
    private SpecialequipmentMapper specialequipmentMapper;

    /**
     * 查询特种设备操作
     * 
     * @param certificateId 特种设备操作主键
     * @return 特种设备操作
     */
    @Override
    public Specialequipment selectSpecialequipmentByCertificateId(String certificateId)
    {
        return specialequipmentMapper.selectSpecialequipmentByCertificateId(certificateId);
    }

    /**
     * 查询特种设备操作列表
     * 
     * @param specialequipment 特种设备操作
     * @return 特种设备操作
     */
    @Override
    public List<Specialequipment> selectSpecialequipmentList(Specialequipment specialequipment)
    {
        return specialequipmentMapper.selectSpecialequipmentList(specialequipment);
    }

    /**
     * 新增特种设备操作
     * 
     * @param specialequipment 特种设备操作
     * @return 结果
     */
    @Override
    public int insertSpecialequipment(Specialequipment specialequipment)
    {
        return specialequipmentMapper.insertSpecialequipment(specialequipment);
    }

    /**
     * 修改特种设备操作
     * 
     * @param specialequipment 特种设备操作
     * @return 结果
     */
    @Override
    public int updateSpecialequipment(Specialequipment specialequipment)
    {
        return specialequipmentMapper.updateSpecialequipment(specialequipment);
    }

    /**
     * 批量删除特种设备操作
     * 
     * @param certificateIds 需要删除的特种设备操作主键
     * @return 结果
     */
    @Override
    public int deleteSpecialequipmentByCertificateIds(String[] certificateIds)
    {
        return specialequipmentMapper.deleteSpecialequipmentByCertificateIds(certificateIds);
    }

    /**
     * 删除特种设备操作信息
     * 
     * @param certificateId 特种设备操作主键
     * @return 结果
     */
    @Override
    public int deleteSpecialequipmentByCertificateId(String certificateId)
    {
        return specialequipmentMapper.deleteSpecialequipmentByCertificateId(certificateId);
    }
}
